using System;
using System.Collections.Generic;
using System.Text;

namespace Devsoft.Utilities
{
    public class Path
    {
        static public string GetHTMLPath(string strURL)
        {
            string strTemp = strURL;
            int nPos =  strURL.LastIndexOf('/');
            if (nPos != -1)
            {
                strTemp = strURL.Substring(0, nPos);
            } //End If
            return strTemp;
        }
        public static string GetExePath()
        {
#if MONODROID
            string sTemp = Environment.CurrentDirectory;
#else
            string sTemp = System.Windows.Forms.Application.ExecutablePath.Replace('/','\\');
#endif
            int pos = sTemp.LastIndexOf("\\");
            sTemp = sTemp.Substring(0, pos + 1);
            return sTemp;
        }

    }
}
